home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / rlpr-1.000 / rlpr-1 / rlpr-1.13 / rlpr-net.h < prev    next >
C/C++ Source or Header  |  1996-06-30  |  828b  |  25 lines

  1. /* filename: rlpr-net.h
  2.  * project: rlpr
  3.  * author: meem  --  meem@sherilyn.wustl.edu
  4.  * version: $Id: rlpr-net.h,v 1.4 1996/04/28 21:48:51 meem Exp $
  5.  * contents: prototypes for network constants and rlpr functions relating to
  6.  *           networking...
  7.  *
  8.  * Time-stamp: <1996/04/20 23:26 -- meem@sherilyn.wustl.edu>
  9.  */
  10.  
  11. #ifndef RLPR_NET_H
  12. #define RLPR_NET_H
  13.  
  14. enum {   DONE = 0, PRINTQ, RECVJ, SENDQS, SENDQL, REMJ };
  15.  
  16. enum { ABORTJ = 1, RECVCF = 2, RECVDF = 3};
  17.  
  18. void open_connection(void);    /* initializes a socket connection */
  19. void close_connection(void);    /* closes and unlinks a connection */
  20. void recv_job_req(void);    /* tells daemon to "receive job"   */
  21. void send_cf(int cfd, char *cfname);   /* sends daemon controlfile */
  22. void send_df(char *fname, char *dfname);  /* sends daemon datafile */
  23.  
  24. #endif /* RLPR_NET_H */
  25.